/*
 * types.h
 *
 *  Created on: 26/06/2011
 *      Author: george
 */

#ifndef DUNADAN_TYPES_H_
#define DUNADAN_TYPES_H_
#include <netinet/ip.h>
#include <netinet/ip_icmp.h>
#include <netinet/udp.h>
#include <netinet/tcp.h>
#include <net/ethernet.h>
#include <pcap/pcap.h>


typedef struct ip 			ip_hdr_t;
typedef struct icmphdr 		icmp_hdr_t;
typedef struct udphdr 		udp_hdr_t;
typedef struct tcphdr 		tcp_hdr_t;
typedef struct icmp 		icmp_t;
typedef struct ether_header eth_hdr_t;
typedef struct bpf_program 	bpf_program_t;
typedef enum status{OPENED, CLOSED} status_t;
typedef enum server{SERVER_A, SERVER_B} server_t;

typedef union t_header{
	tcp_hdr_t *tcp;
	udp_hdr_t *udp;
	icmp_hdr_t *icmp;
}t_header_t;

class Host;
class Adjacencia;
class Adjnode;



#endif /* TYPES_H_ */
